package com.huang.strategic.v1;

/**
 * <p></p>
 *
 * @author aneng huang
 * @since 2020-10-27 14:57:02
 */
public class CashierFactory {

    public static CashierSuper createCashierAccept(String type) {
        CashierSuper cashierSuper = null;
        switch (type) {
            case "0":
                cashierSuper = new CashierNormal();
                break;
            case "1":
                cashierSuper = new CashierRebate("0.8");
                break;
            case "2":
                cashierSuper = new CashierReturn("300", "100");
                break;
            default:

        }
        return cashierSuper;
    }
}
